package ru.agiledev.akb.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import ru.agiledev.akb.shared.TransferObject;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("dataServlet")
public interface AKBDataService extends RemoteService {
  TransferObject getData(Integer id);
  void saveData(TransferObject tObject) throws Exception;
    void updateData(TransferObject tObject) throws Exception;

    TransferObject getDataForQuestion(String question);
    TransferObject getDataForQuestion(Integer id);

  Integer[] getIds();
}
